//
//  PentahoIPPUCAppDelegate.h
//  PentahoIPPUC
//
//  Created by Bill Seyler on 6/10/10.
//  Copyright Pentaho Corporation 2010. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kFileName		@"data.plist"
#define kServerURI		@"http://localhost:8080/pentaho"
#define kRepoRequest	@"/SolutionRepositoryService?component=getSolutionRepositoryDoc"
#define kUserName		@"joe"
#define kPassword		@"password"

@class SolutionNode;

@interface PentahoIPPUCAppDelegate : NSObject <UIApplicationDelegate> {
    
    UIWindow *window;
    UINavigationController *navigationController;
	UIBarButtonItem *setupButton;
	
	NSString *serverUrl;
	NSString *userid;
	NSString *password;
	
	SolutionNode *rootNode;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *setupButton;
@property (nonatomic, retain) NSString *serverUrl;
@property (nonatomic, retain) NSString *userid;
@property (nonatomic, retain) NSString *password;

@property (nonatomic, retain) SolutionNode *rootNode;

- (IBAction)doSetup:(id)sender;
- (BOOL)connect;
- (NSString *)dataFilePath;
- (void)loadPrefs;
@end

